<script setup lang='ts'>
import { ref } from 'vue';
import ChildComp from './components/07-vue3生命周期函数-子组件ChildComp.vue';
const isShow = ref(true)
</script>

<template>
  <ChildComp v-if="isShow"></ChildComp>
  <button @click="isShow = false">干掉他</button>
</template>

<style scoped></style>
